home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.8 KB | 51 lines | [TEXT/GEOL] |
-
- Item 8778001 7-Jan-91 22:16PST
-
- From: D3554 Discovery SW Int'l, Rick Ross,PRT
-
- To: CPLUS.DEV$ C++ Interest List--Developers
- CPLUS.APPLE$ C++ Interest List--Apple Employees
-
- ------------------------------------------------------------------------------
-
- Sub: Dump/Load Problem
-
- Dear C++ Cognoscenti,
-
- I have spent several hours now trying to figure out why the C++ compiler
- is giving me different results from the same file depending on whether or not I
- use a dump file for precompiled headers. I am using the compiler which just
- came on the ETO #2 disk, it should be current. The CFront version is 1.0.
-
- The file is "shapes.cp" from the CPlusExamples folder of the MPW
- distribution disk, and the dump file is one created from the file "shapes.h"
- from the same folder. If I don't instruct the compiler to load the dump file,
- then everything works fine. However, it aborts the compile in the CFront stage
- with an error message about "... cannot access __nw ..." if the dump file is
- used.
-
- I am now really frustrated and have a sense of impending doom about never
- being able to use precomplied headers. Can anyone offer suggestions or point
- out my error.
-
- -------
-
- Command line to compile "shapes.cp" without dump file (works fine):
- CPlus Shapes.cp -o Shapes.cp.o -mf -sym off
-
- Command line to create dump file (works fine):
- CPlus Shapes.h -o Shapes.h.o -mf -sym off -dumpc shapes.h.dump
-
- Command line to compile "shapes.cp" with dump file loaded:
- CPlus Shapes.cp -o Shapes.cp.o -mf -sym off -load shapes.h.dump
- Terminates compilation with error message
- File "Shapes.cp"; line 104 # error: TArc::TArc() cannot access __nw :
- HandleObject is a private base class
-
- -------
-
- Thanks,
- Rick Ross
- AppleLink: D3554
-
-